?><?
function get_perc($val1,$val2,$round=2){
  if($val2==0){
    return 0;
  }else{
    return round((($val1-$val2)/$val2)*100,$round);
  }
}
function perc($tot,$val){
  return round((100/$tot)*$val,2);
}
function rem_perc($summ,$perc,$round=2){
}
function get_perc_val($summ,$perc,$round=2){
  return round(($summ/100)*$perc,2);
}